package edu.bailie.spring.service;

import edu.bailie.spring.dao.StudentDao;
import edu.bailie.spring.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service("studentServiceImpl")
public class StudentServiceImpl implements StudentService{

//	@Resource(name = "studentDaoImpl")

	@Autowired
	@Qualifier("studentDaoImpl")
	private StudentDao studentDao;


	public StudentServiceImpl(StudentDao studentDao) {
		super();
		this.studentDao = studentDao;
	}

	@Override
	public void getStudentInfo(Student student) {
		String studentInfo = studentDao.StudentInfo(student);
		System.out.println(studentInfo);
	}
}
